package com.project.thisDatabase.base.service.impl.pack;

import com.project.annotation.common.PK;
import com.project.annotation.function.ConvertValueItem;
import com.project.annotation.model.ConvertContext;

public class PkConvert implements ConvertValueItem {
    @Override
    public Object convertValue(ConvertContext convertContext) throws IllegalAccessException, InstantiationException {
        if (convertContext.getItem().getField().isAnnotationPresent(PK.class)) {
            return convertContext.getVal();
        }
        return null;
    }
}
